//
//  CustomImgCtrl.h
//  NewOT24
//
//  Created by zcz on 15/11/6.
//  Copyright © 2015年 zcz. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CustomImgCtrl;

//设置一个代理
@protocol CustomImgDelegate <NSObject>

- (void)imageCropper:(CustomImgCtrl *)cropperViewController didFinished:(UIImage *)editedImage;
- (void)imageCropperDidCancel:(CustomImgCtrl *)cropperViewController;

@end

@interface CustomImgCtrl : UIViewController

@property (nonatomic, assign) NSInteger tag;
@property (nonatomic, assign) id<CustomImgDelegate> delegate;
@property (nonatomic, assign) CGRect cropFrame;

//构造方法，初始化。
- (id)initWithImage:(UIImage *)originalImage cropFrame:(CGRect)cropFrame limitScaleRatio:(NSInteger)limitRatio;

@end
